import { IParam, EntityBase } from "@/core";
import { IIBIZSample0012 } from './interface/i-ibiz-sample-0012';
import IBIZSample0012Keys from './ibiz-sample-0012-keys';

/**
 * 订单基类
 * 基于template/src/api/{{appEntities}}/{{appEntities}}-base.ts.hbs生成  
 *
 * @export
 * @abstract
 * @class IBIZSample0012Base
 * @extends { EntityBase }
 * @implements { IIBIZSample0012 }
 */
export abstract class IBIZSample0012Base extends EntityBase implements IIBIZSample0012 {
	/**
	 * 实体名称
	 *
	 * @readonly
	 * @type {string}
	 * @memberof IBIZSample0012Base
	 */
	get srfdename(): string {
		return 'IBIZSAMPLE0012';
	}

	/**
     * 当前实体所有属性
     *
     * @protected
     * @type {string[]}
     * @memberof IBIZSample0012Base
     */
    protected get keys(): string[] {
        return IBIZSample0012Keys;
    }

	/**
	 * Creates an instance of ConstactOppoBase.
	 * @param {*} [data]
	 * @memberof IBIZSample0012Base
	 */
	constructor(data?: any) {
		super();
		this.setData(data);
	}

	/**
	 * 建立时间
	 **/
	createdate?: any;
	
	get srfkey(): string {
		return this.ibizsample0012id;
	}

	set srfkey(val: string) {
		this.ibizsample0012id = val;
	}

	/**
	 * 订单标识
	 **/
	ibizsample0012id?: any;
	
	/**
	 * 订单编号
	 **/
	orderuid?: any;
	
	/**
	 * 订单时间
	 **/
	ordertime?: any;
	
	/**
	 * 更新人
	 **/
	updateman?: any;
	
	/**
	 * 更新时间
	 **/
	updatedate?: any;
	
	/**
	 * 备注
	 **/
	memo?: any;
	
	get srfmajortext(): string {
		return this.ibizsample0012name;
	}

	set srfmajortext(val: string) {
		this.ibizsample0012name = val;
	}
	/**
	 * 订单名称
	 **/
	ibizsample0012name?: any;
	
	/**
	 * 建立人
	 **/
	createman?: any;
	
	/**
	 * 订单类型
	 **/
	ordertype?: any;
	

	/**
	 * 重置实体数据
	 *
	 * @param {IParam} [data={}]
	 * @memberof IBIZSample0012Base
	 */
	reset(data: IParam = {}): void {
		super.reset(data);
		this.ibizsample0012id = data.ibizsample0012id || data.srfkey;
		this.ibizsample0012name = data.ibizsample0012name || data.srfmajortext;
	}
}